import { getConfig } from './env_var/index'
import { getEnv } from '../env'

const APP_ID = 'wxcxxxxxxxxxxxxxxx' // 微信小程序appid
const BUSINESS_ERROR_CODE_ESCAPE = ['1', '110001', '110004'] // 请求返回这些业务码时，不走统一错误处理，而需自定义处理逻辑

function getEnvConfig () {
  return getConfig(getEnv())
}

export {
  getEnvConfig,
  APP_ID,
  BUSINESS_ERROR_CODE_ESCAPE
}